import ApiBase from './ApiBase'

export default class AuditMangeService extends ApiBase {
    //获取任务管理数据集列表
    async getList(params) {
        let url = '/task/get_audit_list';
        let data = params ? params:{};
        const result = await super.request(url,data);
        return result;
    }
    //勾选待处理数据加入通过或者驳回清单中
    async add_taskList(params) {
        let url = '/task/add_list';
        let data = params ? params:{};
        const result = await super.request(url,data);
        return result;
    }
    //任务驳回 不通过审核
    async task_overruled(params) {
        let url = '/task/task_overruled';
        let data = params ? params:{};
        const result = await super.request(url,data);
        return result;
    }

    //审核任务通过;
    async task_adopt(params) {
        let url = '/task/task_adopt';
        let data = params ? params:{};
        const result = await super.request(url,data, true);
        return result;
    }

    //同步数据至智慧地球
    async synchronous_gis(params) {
        let url = '/synchronization/synchronous_data';
        let data = params ? params:{};
        const result = await super.request(url,data);
        return result;
    }
    
    //获取同步进度
    async synchronous_speed(params) {
        let url = '/synchronization/get_progress';
        let data = params ? params:{};
        const result = await super.request(url,data);
        return result;
    }
	
	//驳回选中通过选中
	async task_selection(params) {
		let url = '/task/data_audit';
		let data = params ? params:{};
		const result = await super.request(url,data);
		return result;
	}
}